package com.onluy.frameworkcloud.Param;

import io.swagger.annotations.ApiModelProperty;
import net.sf.json.JSONObject;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

public class ParamPagination  extends ReqHead  implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value="第几页" )
    @Min(1)
    @Max(99999)
    private int currPage = 1;


    @ApiModelProperty(value="页行数大小" )
    @Min(1)
    @Max(99999)
    private int pageSize = 10;


    //@Override
    public int getCurrPage() {
        return currPage;
    }

    //@Override
    public void setCurrPage(int currPage) {
        this.currPage = currPage;
    }

    //@Override
    public int getPageSize() {
        return pageSize;
    }

    //@Override
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

}
